using System;
using THANHTUNGO.Portal.Components.UI;

namespace THANHTUNGO.Portal.Modules.FileExpress.Pages
{
    public partial class Upload : YAFPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void btnUpload_Click(object sender, EventArgs e)
        {
            if (fuFileUpload.PostedFile != null)
            {
                string[] s = fuFileUpload.PostedFile.FileName.Split('\\');
                string filename = s[s.Length - 1];
                fuFileUpload.PostedFile.SaveAs(Server.MapPath("~/Uploads/") + filename);
            }
        }
    }
}